package com.bysc.gateway.client;

import com.bysc.commonutils.Results;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-user",fallback = UserInfoDegradeFeignClient.class)
public interface UserClient {
    @GetMapping("/userservice/user-info/isDisabled/{userId}")
    public Results isDisabled(@PathVariable String userId);
    @GetMapping("/aclservice/acl-user/getUserInfo/{id}")
    public Results getUserInfo(@PathVariable String id);
}